<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
		$sql="select * from ".$oto."_favorites,".$oto."_goods where userId='$user_id' and `favoriteType`='0' and targetId=goodsId";
    	$result=$db->query($sql);
    	while($row=$result->fetch_assoc()){
    		$isGuanzhu[]=$row;//将取得的所有数据赋值给person_info数组
    	}
		echo json_encode($isGuanzhu);
?>